//
//  HoldingView.m
//  厚积薄发
//
//  Created by 侯振兴 on 14/12/31.
//  Copyright (c) 2014年 侯振兴. All rights reserved.
//

#import "HoldingView.h"

@implementation HoldingView

- (void)dealloc
{
    [_imageV release];
    [_nameLabel release];
    [_dateLabel release];
    [_view release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //头像
        self.view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 80)];
        self.imageV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"1.png"]];
        [_imageV setCenter:CGPointMake(40.0f, 40.0f)];
        _imageV.layer.cornerRadius = 30;
        [_view addSubview:_imageV];
        [_imageV release];
        //馆主名
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 20, 200, 20)];
        _nameLabel.textColor = [UIColor purpleColor];
        _nameLabel.textAlignment = NSTextAlignmentLeft;
        [_view addSubview:_nameLabel];
        [_nameLabel release];
        //收藏数目及申请时间
        self.dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 50, 200, 15)];
        [_dateLabel setFont:[UIFont systemFontOfSize:13]];
        _dateLabel.textAlignment = NSTextAlignmentLeft;
        [_view addSubview:_dateLabel];
        [_dateLabel release];
        
        [_view release];
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
